import { config } from 'setting'
import { request } from 'utils'

const { api } = config
const { headermenus, menus, prodmenus } = api

export function queryHeaderMenus (params) {
  return request({
    url: headermenus,
    method: 'get',
    data: params,
  })
}

export function queryMenus (params) {
  return request({
    url: menus,
    method: 'get',
    data: params,
  })
}

export function queryProdMenus (params) {
  return request({
    url: prodmenus,
    method: 'get',
    data: params,
  })
}
